<% /* $Id: users.jsp 82 2010-10-20 08:32:13Z altdotua@gmail.com $ */ %>

<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="header.jsp"%>

<h2 align="center">Користувачі</h2>

<table border="1" align="center">
	<tr bgcolor="Gainsboro">
		<th>#</th>
		<th>Login</th>
		<th>Name</th>
		<th>Role</th>
	</tr>
	
<%
	List<ContestUserEntry> entries = ContestUsersModel.getContestUserEntries(request.getParameter("contest_id"));
	for (ContestUserEntry user2: entries)
	{
%>
		<tr>
			<td><a href="<%= Linker.link("user.jsp") + "?user_id=" + user2.getUserId() %>"><%= user2.getId() %></a></td>
			<td><a href="<%= Linker.link("submissions.jsp?user_id=" + user2.getUserId()) %>"><%= StringEscapeUtils.escapeHtml(user2.getName()) %></a></td>
			<td><a href="<%= Linker.link("users.jsp?role=" + user2.getRole()) %>"><%= user2.getRole() %></a></td>
		</tr>
<%
	}
%>
</table>


<%@include file="footer.jsp"%>